#ifndef _SEQLIST_H
#define _SEQLIST_H

#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>

#define size 5

typedef struct
{
	int num;
	char name[20];
	float score;	
} STUDENT;

typedef struct
{
	STUDENT students[size]; //顺序表里面数据的类型
	int last; //last存放最后一个数据的下标						
}	seqlist;

typedef seqlist* pseqlist;

/*函数声明*/
pseqlist creat_seqlist(void);
void insert_data(pseqlist p,int i,STUDENT student);
void insert(pseqlist p,STUDENT student);
void delete_data(pseqlist p,int i);
void delete(pseqlist p,int num);
bool isfull_seqlist(pseqlist p);
bool isempty_seqlist(pseqlist p);
void print_seqlist(pseqlist p);




#endif

